package com.woniuxy.wallet.mapper;

import com.woniuxy.commons.entity.Escort;
import com.woniuxy.commons.entity.Order;
import com.woniuxy.commons.entity.ServiceItem;
import com.woniuxy.commons.entity.Wallet;
import com.woniuxy.wallet.entity.A;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface WalletMapper {


    public List<Wallet> all();

    //查询余额
    public double balance();

    //查询待结算
    public double waitMoney();

    //查询已结算金额
    public double finish();

    //查询已支出金额
    public double amount();

    //查询账单1
    public List<Wallet> findAll1();

    //查询账单2
    public List<Wallet> findAll2();

    //日期查找1
    public List<Wallet> findTime1(String ot);

    //日期查找2
    public List<Wallet> findTime2(String ot);

    //筛选查询
    public List<Wallet> shaixuan(Wallet wallet);

    //查询结账明细
    public List<Order> allCS();

    //条件查询提成
    public List<Order> findT(A aaa);

    //根据陪护员名字查陪护员ID
    public Escort findEByName(String name);

    //更改订单状态码
    public void updateStatus(String no);

    //添加钱包
    public void insertWallet(Wallet wallet);

    //根据服务id查服务
    public ServiceItem findById(long id);

    //findEscortById
    public Escort findEscortById(int id);
}
